<table width="100%" cellpadding="0" cellspacing="4" border="0">
{foreach from=$aItems key=key item=aItem name=aitems}
    <tr>
        <td style="text-align:left;vertical-align:middle;" class="border2">
            <table style="width:100%;">
                <tr>
                    <td style="width:10%;text-align:center;vertical-align:top;">
                        <div style="font-size:11pt;"><b>#{$key+1}</b></div>
                    </td>
                    <td style="width:50%;text-align:left;">
                        <a href="{url link='public.gallery.rate' rateid=$aItem.id}">{img src="`$sGImageUrl`thumb/`$aItem.id`.jpg" src_def="design/pic/noimage_120.jpg" style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';"}</a>
                    </td>
                    <td style="width:40%;vertical-align:top;font-size:8pt;" class="color">
                        <table>
                        <tr>
                        	<td style="text-align:right;"><b>{language text="rating"}</b>:</td>
                        	<td>{$aItem.rating}</td>
                        </tr>
                        <tr>
                        	<td style="text-align:right;"><b>{language text="votes"}</b>:</td>
                        	<td>{$aItem.votes}</td>
                        </tr>
                        <tr>
                        	<td style="text-align:right;"><b>{language text="views"}</b>:</td>
                        	<td>{$aItem.view}</td>
                        </tr>
                        <tr>
                        	<td style="text-align:right;"><b>{language text="posted_by_604"}</b>:</td>
                        	<td><a href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a></td>
                        </tr>
                        <tr>
                        	<td></td>
                        	<td><a class="link_action" href="{url link='public.gallery.rate' rateid=$aItem.id}">[ {language text="rate_now"} ]</a></td>
                        </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
{foreachelse}
    <tr>
        <td style="font-size:8pt;width:100%;vertical-align:top;" class="color">
            <div class="message_info">
            	{language text="there_are_no_images_yet"}
            	<div style="padding:15px;">
                    <a class="link_action" href="{url link='public.account.submit.upload-pic'}">[ {language text="upload_your_pic_now"} ]</a>
            	</div>
            </div>
        </td>
    </tr>
{/foreach}
</table>